type Generic<T> = [T];

function foo(): void | never {
  throw new Error('Test');
}

type voidNeverUnion = void | never;

type neverVoidUnion = never | void;

